﻿#pragma strict

// 24.06.


var HpGegner = 100;

function Update ()
{
	if(HpGegner <= 0)
	{
		Tot();
	}
}

function Tot()
{
 Destroy (gameObject);
}

function SchadenMachen (Schaden : int)
{
	HpGegner = HpGegner - Schaden; // Oder HpGegner -= Schaden
}

